﻿/*========================================================================================
	TASK 2:                                                          {Console InputOutput}
	Write a program that reads the radius r of a circle and prints its perimeter and area. 
========================================================================================*/

using System;

class ReadsRadiusPrintRAndA
{
    static void Main()
    {
        Console.Write("Enter radius R=");
        float r = float.Parse(Console.ReadLine());
        if (r > 0)
        {
            float P = (float)(2 * Math.PI * r);
            float S = (float)(Math.PI * r * r);
            Console.WriteLine("parameter of circle P={0:F2}\nand area of circle S={1:F2}", P, S);
        }
        else
        {
            Console.WriteLine("Invalid number.Enter number > 0");
        }
        
    }
}

